package Buttons 
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import screens.ToolsTabs;
	
	/**
	 * ...
	 * @author Andy Wolff
	 */
	public class Tool extends MovieClip
	{
		static public var DRAW:int, ERASE:int, COPY:int, MOVE:int, PAN:int;
		private var which:int;
		private var view:ToolsTabs;
		//public function getWhich():int { return which; }
		public function Tool(view:ToolsTabs,which:int) 
		{
			this.view = view;
			this.which = which;
			addEventListener(MouseEvent.CLICK, click);
		}
		
		public function click(me:MouseEvent):void {
			view.selectTool(which);
		}
		
	}

}